package com.intellij.licensecommon.util;

public class LicenseTypes {
    public static final int a = 0;
    public static final int b = 1;
    public static final int c = 2;
    public static final int d = 3;
    public static final int e = 4;
    public static final int f = 5;
    public static final int g = 6;
    public static final int h = 7;
    private static final String i = "COMMERCIAL";
    private static final String j = "OPENSOURCE";
    private static final String k = "YEARACADEMIC";
    private static final String l = "NON_COMMERCIAL";
    private static final String m = "SITE";
    private static final String n = "PERSONAL";

    public static String getName(int paramInt) {
        switch (paramInt) {
            case 0:
                return "COMMERCIAL";
            case 3:
                return "OPENSOURCE";
            case 5:
                return "YEARACADEMIC";
            case 1:
                return "NON_COMMERCIAL";
            case 2:
                return "SITE";
            case 4:
                return "PERSONAL";
        }
        throw new IllegalArgumentException("Unknown license type:" + paramInt);
    }

    public static int a(String paramString) {
        if ("COMMERCIAL".equals(paramString)) {
            return 0;
        }
        if ("NON_COMMERCIAL".equals(paramString)) {
            return 1;
        }
        if ("SITE".equals(paramString)) {
            return 2;
        }
        if ("PERSONAL".equals(paramString)) {
            return 4;
        }
        if ("OPENSOURCE".equals(paramString)) {
            return 3;
        }
        if ("YEARACADEMIC".equals(paramString)) {
            return 5;
        }
        throw new IllegalArgumentException("Unknown license type:" + paramString);
    }
}
